package cc.linker.steplink.crm.merchant.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PublishDao {

    List<Map<String, Object>> getRelevanceList(Map<String, Object> temp);

    Integer getLabelsNumById(String relevanceId);

    void saveRelevance(@Param("publishId") String publishId, @Param("groupIds") String groupIds, @Param("i") int i);

    void delRelevance(String publishId);

    Map<String, Object> getGroupInfoById(String relevanceId);

    String getLabelNameById(String relevanceId);

    List<Map<String, Object>> getGroupList(String orgId);

    List<Map<String, Object>> getLabelList(String orgId);

    int getLabelCustomerNumById(String labelId);

    Map<String, Object> getLabelInfoById(String relevanceId);

    String getCouponCustomerType(String couponIds);

    List<String> getLabelCustomerById(String relevanceId);

    List<String> getGroupCustomerById(String relevanceId);

    int getOldCustomerNum(@Param("customerList") List<String> customerList,@Param("orgId") String orgId,@Param("customerId") String customerId);

    Integer getPublishCustomerTypeById(String publishId);
}
